package com.crud.project.dao;

import com.crud.project.po.Resource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IResourceDao {

    List<Resource> findAllResource();

    void insertResource(Resource resource);

    void insertCourse_resourse(Long course_id,Long resource_id);

    String findResourceIdByResource(Resource resource);

    Resource findResourceById(Long id);

    List<String> findResource_courseId(Long id);

    void deleteResource_course(Long id);

    void updateResource(Resource resource);

    void deleteResourceById(Long id);
}
